package dev.projectnightfall.main;

//import dev.projectnightfall.graphics.Graphics;
import dev.projectnightfall.graphics.RenderEngine;
import javax.swing.SwingUtilities;
import org.newdawn.slick.SlickException;

/**
 * Main class of ProjectNightfall.
 */
public class Launcher {

    /**
     * Unused constructor, we will find a use for it oneday.
     */
    public Launcher() {
        super();
    }

    private void initialise() {
        try {
            new RenderEngine();
        } catch (SlickException e) {
            e.printStackTrace();
        }
    }

    /**
     * Main method of the Launcher. Starts a thread to run initialise().
     *
     * @param args Arguments passed via commandline.
     */
    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                Launcher launcher = new Launcher();
                launcher.initialise();
            }
        });
    }
}
